package org.kotcloud.controller

import org.kotcloud.trimLast
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
open class IndexController{

    val log : Logger = LoggerFactory.getLogger(IndexController::class.java)

    @RequestMapping("/index")
    fun index(id:String="") : String{
        log.info("id:{}",id)
        return id?.trimLast(3)
    }
}




